const fs = require('fs');
const path = require('path')
fs.readFile(path.join(__dirname, './成绩.txt'), 'utf-8', (err, data) => {
    if (err) return console.log(err);
    // console.log(data);
    data = data.replace(/=/g, ':');
    data = data.replace(/\s/g, '\n');
    // console.log(data);

    fs.writeFile(path.join(__dirname, './成绩-OK.txt'), data, err => {
        if (err) return console.log(err);
        console.log('整理完毕');
    })
});